package com.example.domain;

public class User {
    private int user_id;
    private String username;
    private String password;
    private String email;
    private boolean isAdmin;
    private String created_time;
    public User(){}


    public User(String username, String password, String email, boolean isAdmin) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.isAdmin = isAdmin;
    }

    public User(int user_id, String username, String password, String email,boolean isAdmin) {
        this.user_id = user_id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.isAdmin = isAdmin;
    }
    public User(String username, String password, String email) {
        this.username = username;
        this.password = password;
        this.email = email;
    }



    /**
     * 获取
     * @return user_id
     */
    public int getUser_id() {
        return user_id;
    }

    /**
     * 设置
     * @param user_id
     */
    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return isAdmin
     */
    public boolean isIsAdmin() {
        return isAdmin;
    }

    /**
     * 设置
     * @param isAdmin
     */
    public void setIsAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;
    }



    /**
     * 获取
     * @return created_time
     */
    public String getCreated_time() {
        return created_time;
    }

    /**
     * 设置
     * @param created_time
     */
    public void setCreated_time(String created_time) {
        this.created_time = created_time;
    }
    public String toString() {
        return "User{user_id = " + user_id + ", username = " + username + ", password = " + password + ", email = " + email + ",isAdmin = " + isAdmin + ", created_time = " + created_time + "}";
    }
}

